package com.ruoyi.message.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.message.mapper.GymInfoMapper;
import com.ruoyi.message.domain.GymInfo;
import com.ruoyi.message.service.IGymInfoService;

/**
 * 门店Service业务层处理
 * 
 * @author zsc
 * @date 2023-03-29
 */
@Service
public class GymInfoServiceImpl implements IGymInfoService {
    @Autowired
    private GymInfoMapper gymInfoMapper;

    /**
     * 查询门店
     * 
     * @param id 门店主键
     * @return 门店
     */
    @Override
    public GymInfo selectGymInfoById(Long id) {
        return gymInfoMapper.selectGymInfoById(id);
    }

    /**
     * 查询门店列表
     * 
     * @param gymInfo 门店
     * @return 门店
     */
    @Override
    public List<GymInfo> selectGymInfoList(GymInfo gymInfo) {
        return gymInfoMapper.selectGymInfoList(gymInfo);
    }

    /**
     * 新增门店
     * 
     * @param gymInfo 门店
     * @return 结果
     */
    @Override
    public int insertGymInfo(GymInfo gymInfo) {
        return gymInfoMapper.insertGymInfo(gymInfo);
    }

    /**
     * 修改门店
     * 
     * @param gymInfo 门店
     * @return 结果
     */
    @Override
    public int updateGymInfo(GymInfo gymInfo) {
        return gymInfoMapper.updateGymInfo(gymInfo);
    }

    /**
     * 批量删除门店
     * 
     * @param ids 需要删除的门店主键
     * @return 结果
     */
    @Override
    public int deleteGymInfoByIds(Long[] ids) {
        return gymInfoMapper.deleteGymInfoByIds(ids);
    }

    /**
     * 删除门店信息
     * 
     * @param id 门店主键
     * @return 结果
     */
    @Override
    public int deleteGymInfoById(Long id) {
        return gymInfoMapper.deleteGymInfoById(id);
    }
}
